define(function() {
    return {
        "data": [
            {
                "fields": [
                    {
                        "id": "x",
                        "name": " ",
                        "format": {
                            "datePattern": "dd"
                        },
                        "timeZoneOffset": 8,
                        "unit": "timestamp"
                    },
                    {
                        "id": "y1",
                        "name": "cost($)",
                        "format": {
                            "numericDecimals": 0
                        }
                    },
                    {
                        "id": "y2",
                        "name": "result",
                        "format": {
                            "numericDecimals": 0
                        }
                    }
                ],
                "rows": [
                    [
                        1433347200000,
                        811,
                        1
                    ],
                    [
                        1433433600000,
                        1200,
                        1
                    ],
                    [
                        1433520000000,
                        1157,
                        1
                    ],
                    [
                        1433606400000,
                        1268,
                        1
                    ],
                    [
                        1433692800000,
                        530,
                        1
                    ],
                    [
                        1433779200000,
                        429,
                        1
                    ],
                    [
                        1433865600000,
                        156,
                        0
                    ]
                ]
            }
        ],
        "legend": {
            "backgroundStyle":{
                "valign":"top",
                "align":"right"
            }
        },
        "grammar": {
            "graph": "basic",
            "coordinates": {
                "dimensions": [
                    {
                        "axis": [
                            {
                                "id": "yAxis",
                                "opposite": false,
                                "scale": {
                                    //"spans": {
                                    //    "max": 50
                                    //}
                                },
                                "lineGuides": [
                                    //{
                                    //    "value": 30,
                                    //    "mainStyle": {
                                    //        "fill": "red",
                                    //        "width": 2
                                    //    },
                                    //    "label": "CPI",
                                    //    "labelRotation": 0,
                                    //    "labelStyle": {
                                    //        "fill": "red",
                                    //        "valign": "top",
                                    //        "align": "left"
                                    //    }
                                    //}
                                ],
                                "title": [
                                    {
                                        "$ref": "y1"
                                    }
                                ],
                                "tickLabelStyle": {
                                    "fill": "#fd9611"
                                },
                                "titleStyle": {
                                    "fill": "#fd9611",
                                    "outline": "#fd9611"
                                }
                            },
                            {
                                "id": "yAxis1",
                                "opposite": true,
                                "scale": {
                                    "fitData": false
                                },
                                "title": [
                                    {
                                        "$ref": "y2"
                                    }
                                ],
                                "tickLabelStyle": {
                                    "fill": "green"
                                },
                                "titleStyle": {
                                    "fill": "green",
                                    "outline": "yellow"
                                }
                            }
                        ]
                    },
                    {
                        "axis": [
                            {
                                "title": [
                                    {
                                        "$ref": "x"
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            "elements": [
                {
                    "type": "line",
                    "mainStyle": {
                        "fill": "#fd9611"
                    },
                    "tooltipContent": [
                        {
                            "sharedElementIndex": 0,
                            "sharedContent": [
                                "day : ",
                                {
                                    "$ref": "x"
                                },
                                "<br>"
                            ]
                        },
                        {
                            "source": {
                                "$ref": "y1"
                            }
                        },
                        " : ",
                        {
                            "$ref": "y1"
                        },
                        "<br>"
                    ],
                    "marker": {
                        "mainStyle": {
                            "fill": {
                                "type": "radial",
                                "focus": {
                                    "x": 0.5,
                                    "y": 0.5,
                                    "r": 0.5
                                },
                                "colors": [
                                    {
                                        "offset": 0.2,
                                        "color": "white"
                                    },
                                    {
                                        "offset": 0.4,
                                        "color": "#fd9611"
                                    }
                                ]
                            },
                            "outline": "white",
                            "size": 5,
                            "stroke": {
                                "width": 3
                            }
                        }
                    },
                    "position": [
                        {
                            "field": {
                                "$ref": "y1"
                            }
                        },
                        {
                            "field": {
                                "$ref": "x"
                            }
                        }
                    ]
                },
                {
                    "type": "spline",
                    "tooltipContent": [
                        {
                            "source": {
                                "$ref": "y2"
                            }
                        },
                        " : ",
                        {
                            "$ref": "y2"
                        },
                        "<br>"
                    ],
                    "yAxis": {
                        "$ref": "yAxis1"
                    },
                    "mainStyle": {
                        "fill": "green"
                    },
                    "marker": {
                        "mainStyle": {
                            "fill": {
                                "type": "radial",
                                "focus": {
                                    "x": 0.5,
                                    "y": 0.5,
                                    "r": 0.5
                                },
                                "colors": [
                                    {
                                        "offset": 0.2,
                                        "color": "white"
                                    },
                                    {
                                        "offset": 0.4,
                                        "color": "green"
                                    }
                                ]
                            },
                            "outline": "white",
                            "size": 5,
                            "stroke": {
                                "width": 3
                            }
                        }
                    },
                    "position": [
                        {
                            "field": {
                                "$ref": "y2"
                            }
                        },
                        {
                            "field": {
                                "$ref": "x"
                            }
                        }
                    ]
                }
            ]
        },
        "tooltip": {
            "shared": true
        },
        "titles": [
            {
                "type": "title",
                "label": {
                    "content": [
                        " "
                    ]
                }
            }
        ],
        "credit": {
            "text": "",
            "href": "#"
        },
        "size": {
            "width": 800,
            "height": 500
        }
    }
});